import log from '@dfeidao/atom-nodejs/logger/log';
import { IncomingHttpHeaders } from 'http';
import query from '@dfeidao/atom-nodejs/db/query';
import { systemid ,productid} from '../../atom/config';

interface Message {
	msg_type_no:string
}

export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders){
	const p=query(action_id,session_id,systemid);
	p.prepare('msg_templ',['msg_templ_title','msg_templ_cont','msgtemplid'],{productid,msg_type_no:message.msg_type_no},200,1,[],[]);
	const [dt2]=await p.exec();
	return {dt2};
}
